package Capitulo09.Exercicios;

class Work implements Runnable {
	
	Thread other;

	Work(Thread other) {
		System.out.println(Thread.currentThread().getName());
		this.other = other;
	}

	public void run() {
		try {
			System.out.println(other.getName());
			other.join();
		} catch (Exception e) { }
		
		System.out.print("after join ");
	}
}

class Launch {
	public static void main(String[] args) {
		new Thread(new Work(Thread.currentThread())).start();
		System.out.print("after start ");
	}
}
